#include "csvform.h"
#include "ui_csvform.h"

csvForm::csvForm(QWidget *parent) :
    QWidget(parent),
    m_ui(new Ui::csvForm)
{
    m_ui->setupUi(this);
}

csvForm::~csvForm()
{
    delete m_ui;
}

void csvForm::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

QString csvForm::getCsvDelimiterChar()
{ return m_ui->csvDelimiterBox->currentText(); }

bool csvForm::csv83format()
{ return m_ui->csvCheckBox->isChecked(); }

int csvForm::getCsvOutputFormat()
{ return m_ui->csvComboBox->currentIndex(); }
